package com.gcu.drivingschool.task;

import lombok.RequiredArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * 应用初始化
 * @author zzr
 * @create 2024-04-08-20:03
 */
@Component
@RequiredArgsConstructor
public class ApplicationInit implements ApplicationRunner {
    private final CheckReservationRecordTask checkReservationRecordTask;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        checkReservationRecordTask.checkReservationRecord();//检查预约记录
    }


}
